<!--{template admin/header_tpl}-->

<div class="mainarea">
<div class="maininner">

<!--{if $member}-->
	<form method="post" action="{SITEURL}admin/admin_user/manage/?uid=$member[uid]" accept-charset="utf-8">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
		<div class="title">
			<h3>$member[username] 基本信息</h3>
		</div>
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:12em;">用户名</th>
			<td><a href="{SITEURL}home/index/$member[uid]" target="_blank">$member[username]</a></td></tr>
		
		
		<tr><th>开通时间</th><td><!--{date('Y-m-d H:i',$member[dateline])}--></td></tr>
		<tr><th>更新时间</th><td>
							<!--{if isset($member['updatetime'])}-->
								<!--{date('Y-m-d H:i',$member[updatetime])}-->
							<!--{else}-->
								-
							<!--{/if}-->
							</td>
		</tr>
		<tr><th>注册IP</th><td>$member[ip]</td></tr>
		<tr><th>批量管理</th>
			<td>
			<a href="{SITEURL}following/index/$member[uid]" target="_blank">关注数($member[follow_count])</a> | 
			<a href="{SITEURL}fan/index/$member[uid]" target="_blank">粉丝数($member[fans_count])</a> | 
			<a href="{SITEURL}likelist/index/$member[uid]" target="_blank">喜欢数($member[likenum])</a> | 
			<a href="{SITEURL}worklist/index/$member[uid]" target="_blank">作品数($member[worknum])</a>
		</td></tr>
		</table>
	</div>
<!--{/if}-->
	<br>
	<div class="bdrcontent">
		<div class="title">
			<h3>$member[name] 个人资料</h3>
		</div>
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:12em;">头像</th><td><a href="{SITEURL}home/index$member[uid]" target="_blank"><img src="<!--{eval echo avatar($member[uid],big)}-->"></a>
		<br>[<a href="{SITEURL}admin/admin_user/deleteavatar/?uid=$member[uid]" onClick="return confirm('本操作不可恢复，确认删除？');">删除头像</a>]
		</td></tr>

		<tr>
			<th>姓名</th>
			<td>
				<input type="text" class="t_input" name="name" value="$member[name]" /> 
			</td>
		</tr>
		<tr>
			<th>简介</th>
			<td>
				<textarea name="intro" value="" rows="10" cols="60">$member[intro]</textarea> 
			</td>
		</tr>
		<tr>
			<th>个人博客</th>
			<td>
				<input type="text" class="t_input" name="myblog" value="$member[myblog]" size="70"/> 
			</td>
		</tr>
		<tr>
			<th>重置密码</th>
			<td>
				<input type="password" class="t_input" name="password" value="" /> 
			</td>
		</tr>
		<tr><th>冻结用户</th><td>
			<input type="radio" name="status" value="0"<!--{if $member[status]==0}--> checked<!--{/if}-->> 未冻结
			<input type="radio" name="status" value="1"<!--{if $member[status]==1}--> checked<!--{/if}-->> 冻结
			<p>冻结状态下 该用户不能登录。</p>
			</td></tr>
		</td></tr>
		<tr>
			<th>用户组</th>
			<td>
				<select name="groupid">
					<!--{loop $usergroup $gid $group}-->
					<option value="$gid" <!--{if $gid == $member[groupid]}--> selected <!--{/if}-->>$group[grouptitle]</option>
					<!--{/loop}-->
				</select> 
			</td>
		</tr>
		<tr>
			<th>已邀请次数</th>
			<td>
				<input type="invitedtime" class="t_input" name="invitedtime" value="$member[invitedtime]" /> <br/>0为可邀请 999 为禁止邀请
			</td>
		</tr>		
			
		</table>
	</div>
	
	<br>
	<div class="bdrcontent">
		<div class="title">
			<h3>$member[name] 认证</h3>
		</div>
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:12em;">姓名</th><td><input type="text" class="t_input" name="name" value="$member[name]">
			<input type="radio" name="namestatus" value="0"<!--{if $member[namestatus]==0}--> checked<!--{/if}-->> 认证失败
			<input type="radio" name="namestatus" value="1"<!--{if $member[namestatus]==1}--> checked<!--{/if}-->> 认证通过
			<p>认证之后该用户不可修改姓名（长度10个汉字）</p>
		</td></tr>
		<tr>
			<th>认证理由:</th>
			<td><input type="text" name="passreason" value="{$member[passreason]}" id="passreason"/></td>
			</tr>
		</table>
	</div>

	<div class="footactions">
		<input type="hidden" name="refer" value="<!--{eval echo $this->agent->referrer()}-->">
		<input type="submit" name="manageuersubmit" value="提交" class="submit">
	</div>
	</form>

</div>
</div>

<div class="side">
	<!--{template admin/side}-->
</div>

<!--{template admin/footer_tpl}-->